import request from '@/utils/request';
import { AxiosPromise } from 'axios';


/**
 * 更新switch
 *
 * @param data
 */
export function updateStatusMember(data: any) {
  return request({
    url: '/api/member/member/list',
    method: 'post',
    data
  });
}

/**
 * 修改
 *
 * @param data
 */
export function updateMember(data: any) {
  return request({
    url: '/api/member/member/update',
    method: 'post',
    data
  });
}

/**
 * 添加
 *
 * @param data
 */
export function addMember(data: any) {
  return request({
    url: '/api/member/member/add',
    method: 'post',
    data
  });
}


/**
 * 获取List
 *
 * @param data
 */
export function getMemberList(data: any) {
  return request({
    url: '/api/member/member/list',
    method: 'post',
    data
  });
}

/**
 * 获取详情
 *
 * @param data
 */
export function getMemberDetail(data: any) {
  return request({
    url: '/api/member/member/detail',
    method: 'post',
    data
  });
}


/**
 * 删除List
 *
 * @param data
 */
export function deleteMember(data: any) {
  return request({
    url: '/api/member/member/delete',
    method: 'post',
    data
  });
}



